export default [
    {
        path: "useradd",
        name: "IndexUserAdd",
        component: () => import("@/views/user/webadd"),
        meta: { title: "用户添加" }
    },
    {
        path: "news",
        name: "IndexnewsList",
        component: () => import("@/views/news/index"),
        meta: { title: "新闻信息列表" }
    },
    {
        path: "newsdetail",
        name: "IndexnewsDetail",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/news/webdetail"),
        meta: { title: "新闻信息详情" }
    },
    {
        path: "emergency",
        name: "IndexemergencyList",
        component: () => import("@/views/emergency/index"),
        meta: { title: "应急信息列表" }
    },
    {
        path: "emergencydetail",
        name: "IndexemergencyDetail",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/emergency/webdetail"),
        meta: { title: "应急信息详情" }
    },
    {
        path: "complaintadd",
        name: "IndexcomplaintAdd",
        component: () => import("@/views/complaint/webadd"),
        meta: { title: "投诉添加", authLogin: true, msg: true }
    },
    {
        path: "attraction",
        name: "IndexattractionList",
        component: () => import("@/views/attraction/index"),
        meta: { title: "景点信息列表" }
    },
    {
        path: "attractiondetail",
        name: "IndexattractionDetail",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/attraction/webdetail"),
        meta: { title: "景点信息详情" }
    },
    {
        path: "strategy",
        name: "IndexstrategyList",
        component: () => import("@/views/strategy/index"),
        meta: { title: "行程规划列表" }
    },
    {
        path: "strategydetail",
        name: "IndexstrategyDetail",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/strategy/webdetail"),
        meta: { title: "行程规划详情" }
    },
    {
        path: "strategybookingadd",
        name: "IndexstrategybookingAdd",
        component: () => import("@/views/strategybooking/webadd"),
        meta: { title: "预定添加", authLogin: true, msg: true }
    },
    {
        path: "food",
        name: "IndexfoodList",
        component: () => import("@/views/food/index"),
        meta: { title: "地方美食列表" }
    },
    {
        path: "fooddetail",
        name: "IndexfoodDetail",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/food/webdetail"),
        meta: { title: "地方美食详情" }
    },
    {
        path: "mapdetail",
        name: "IndexmapDetail",
        component: () => import("@/views/strategy/mapdetail"),
        meta: { title: "地图" }
    },
    {
        path: '/weather',
        name: 'Weather',
        component: () => import('@/views/weather/weather'),
        meta: { title: '天气查询' },
    },
    {
        path: "hoteldetail",
        name: "IndexHotelDetail",
        component: () => import("@/views/hotels/hoteldetail"),
        meta: { title: "酒店预定" },
        props: (route) => ({
            hotel: route.query.hotel,
            checkin: route.query.checkin,
            checkout: route.query.checkout
        })
    },
    {
        path: "performanceInfo",
        name: "IndexperformanceInfoList",
        component: () => import("@/views/performanceInfo/index"),
        meta: { title: "演出列表" }
    },
    {
        path: "performanceInfodetail",
        name: "IndexperformanceInfoDetail",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/performanceInfo/webdetail"),
        meta: { title: "演出详情" }
    },
    {
        path: "aroundhotels",
        name: "IndexAroundHotels",
        component: () => import("@/views/hotels/around-hotels"),
        meta: { title: "住宿查询" }
    },
    {
        path: "aroundmap",
        name: "MapComponent",
        component: () => import("@/views/hotels/around-map-component"),
        meta: { title: "附近地图" }
    },
    {
        path: "closeorder",
        name: "CloseToUser",
        component: () => import("@/views/hotels/closeorder"),
        meta: { title: "关闭" }
    },
    {
        path: "/ChatView",
        name: "ChatView",
        props: route => ({ id: route.query.id }),
        component: () => import("@/views/ChatView"),
        meta: { title: "AI Chat" }
    },
]
